﻿using DaBF.Data;
using DaBF.Models;

using System.Collections.Generic;



namespace DaBF.Service
{
    public class CategroyService:IService<Category>
    {
        private  mySqlDbContext mySqlDb;

        public CategroyService(mySqlDbContext mySqlDb)
        {
            this.mySqlDb = mySqlDb;
        }

        public IEnumerable<Category> GetAll()
        {
            return  mySqlDb.Categorys.Where(x => x.DeleteFlag == false).ToList();
        }
    }
}
